```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>现代加密算法全览 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .algorithm-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #6e48aa;
        }
        .section-title {
            position: relative;
            padding-bottom: 1rem;
        }
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: #6e48aa;
        }
        .drop-cap:first-letter {
            float: left;
            font-size: 4rem;
            line-height: 0.8;
            padding: 0.1em 0.2em 0 0;
            color: #6e48aa;
            font-weight: 700;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 md:py-32">
        <div class="container mx-auto max-w-6xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 font-serif">现代加密算法全览</h1>
                    <p class="text-xl mb-8 opacity-90">探索数据安全的基石，解密现代密码学的核心</p>
                    <div class="bg-white bg-opacity-20 p-6 rounded-lg backdrop-blur-sm">
                        <p class="drop-cap">常见的加密和解密算法可以分为对称加密算法、非对称加密算法和散列算法。这些加密和解密算法构成了现代密码学的基础，被广泛应用于各种安全通信、数据保护和身份验证的场景中。</p>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <div class="w-full max-w-md">
                        <div class="mermaid">
                            graph TD
                                A[加密算法] --> B[对称加密]
                                A --> C[非对称加密]
                                A --> D[散列算法]
                                B --> E[AES]
                                B --> F[DES/3DES]
                                B --> G[Blowfish]
                                B --> H[RC4]
                                C --> I[RSA]
                                C --> J[ECC]
                                C --> K[DSA]
                                D --> L[MD5]
                                D --> M[SHA-1]
                                D --> N[SHA-256]
                                D --> O[SHA-3]
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="container mx-auto max-w-6xl px-4 py-16">
        <!-- Symmetric Encryption -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <i class="fas fa-lock algorithm-icon mr-4"></i>
                <h2 class="text-3xl font-bold font-serif section-title">对称加密算法</h2>
            </div>
            <p class="text-gray-700 mb-8">对称加密算法使用相同的密钥来进行加密和解密，主要特点是加密速度快，适合大数据量的加密。</p>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- AES -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-3 rounded-full mr-4">
                                <i class="fas fa-shield-alt text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">AES (Advanced Encryption Standard)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">目前最广泛使用的对称加密算法，支持 128 位、192 位和 256 位密钥长度。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-purple-600">应用场景：</span> 数据加密、通信加密，如 SSL/TLS、VPN。
                        </div>
                    </div>
                </div>

                <!-- DES -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-lock-open text-blue-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">DES (Data Encryption Standard)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">一种较早期的对称加密算法，使用 56 位密钥。由于安全性较低，现已被 AES 取代。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-blue-600">应用场景：</span> 早期数据加密，现已很少使用。
                        </div>
                    </div>
                </div>

                <!-- 3DES -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i class="fas fa-lock text-green-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">3DES (Triple DES)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">通过三次应用 DES 加密来增强安全性，但计算速度较慢。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-green-600">应用场景：</span> 金融数据加密，但逐渐被 AES 取代。
                        </div>
                    </div>
                </div>

                <!-- Blowfish -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-yellow-100 p-3 rounded-full mr-4">
                                <i class="fas fa-fish text-yellow-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">Blowfish</h3>
                        </div>
                        <p class="text-gray-700 mb-4">可调节密钥长度（32-448 位），适用于数据加密和口令存储。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-yellow-600">应用场景：</span> 文件加密、密码保护。
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Asymmetric Encryption -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <i class="fas fa-key algorithm-icon mr-4"></i>
                <h2 class="text-3xl font-bold font-serif section-title">非对称加密算法</h2>
            </div>
            <p class="text-gray-700 mb-8">非对称加密算法使用一对密钥：公钥加密，私钥解密。主要特点是密钥管理方便，但加密速度较慢。</p>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- RSA -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-red-100 p-3 rounded-full mr-4">
                                <i class="fas fa-user-shield text-red-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">RSA (Rivest–Shamir–Adleman)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">基于大素数分解问题，支持多种密钥长度（1024 位、2048 位、4096 位）。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-red-600">应用场景：</span> 数字签名、密钥交换、电子商务安全。
                        </div>
                    </div>
                </div>

                <!-- ECC -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-3 rounded-full mr-4">
                                <i class="fas fa-project-diagram text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">ECC (Elliptic Curve Cryptography)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">基于椭圆曲线数学，比 RSA 更高效，适合移动设备。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-purple-600">应用场景：</span> SSL/TLS、安全通信、区块链。
                        </div>
                    </div>
                </div>

                <!-- DSA -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-signature text-blue-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">DSA (Digital Signature Algorithm)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">用于数字签名的非对称算法，通常与 Diffie-Hellman 结合使用。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-blue-600">应用场景：</span> 数字签名、身份验证。
                        </div>
                    </div>
                </div>

                <!-- ElGamal -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i class="fas fa-lock text-green-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">ElGamal</h3>
                        </div>
                        <p class="text-gray-700 mb-4">基于离散对数问题，用于加密和数字签名。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-green-600">应用场景：</span> 加密数据传输，常用于加密协议中。
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Hashing Algorithms -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <i class="fas fa-fingerprint algorithm-icon mr-4"></i>
                <h2 class="text-3xl font-bold font-serif section-title">散列算法</h2>
            </div>
            <p class="text-gray-700 mb-8">散列算法将数据映射为固定长度的哈希值，广泛用于数据完整性校验和数字签名，但不用于加密和解密。</p>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- MD5 -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-yellow-100 p-3 rounded-full mr-4">
                                <i class="fas fa-exclamation-triangle text-yellow-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">MD5 (Message Digest Algorithm 5)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">生成 128 位哈希值，速度快但已被认为不安全。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-yellow-600">应用场景：</span> 文件完整性校验（已逐渐淘汰）。
                        </div>
                    </div>
                </div>

                <!-- SHA-1 -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-orange-100 p-3 rounded-full mr-4">
                                <i class="fas fa-exclamation-circle text-orange-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">SHA-1 (Secure Hash Algorithm 1)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">生成 160 位哈希值，曾用于数字签名和证书校验，但存在安全漏洞。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-orange-600">应用场景：</span> 数字签名（已逐渐淘汰）。
                        </div>
                    </div>
                </div>

                <!-- SHA-256 -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i class="fas fa-check-circle text-green-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">SHA-256</h3>
                        </div>
                        <p class="text-gray-700 mb-4">SHA-2 家族的一部分，生成 256 位哈希值，被广泛认为是安全的。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-green-600">应用场景：</span> 数据完整性校验、密码存储、区块链。
                        </div>
                    </div>
                </div>

                <!-- SHA-3 -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-shield-alt text-blue-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">SHA-3</h3>
                        </div>
                        <p class="text-gray-700 mb-4">新的加密散列标准，安全性高，支持多种哈希长度。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-blue-600">应用场景：</span> 高级密码学应用、区块链。
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Other Algorithms -->
        <section>
            <div class="flex items-center mb-8">
                <i class="fas fa-puzzle-piece algorithm-icon mr-4"></i>
                <h2 class="text-3xl font-bold font-serif section-title">其他加密算法</h2>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- HMAC -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-3 rounded-full mr-4">
                                <i class="fas fa-hashtag text-purple-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">HMAC (Hash-based Message Authentication Code)</h3>
                        </div>
                        <p class="text-gray-700 mb-4">基于散列函数的消息认证码，用于验证消息的完整性和身份验证。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-purple-600">应用场景：</span> 网络协议中的消息认证，如 SSL/TLS、IPsec。
                        </div>
                    </div>
                </div>

                <!-- Diffie-Hellman -->
                <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-red-100 p-3 rounded-full mr-4">
                                <i class="fas fa-exchange-alt text-red-600"></i>
                            </div>
                            <h3 class="text-xl font-bold">Diffie-Hellman 密钥交换</h3>
                        </div>
                        <p class="text-gray-700 mb-4">一种密钥交换算法，允许两方在不安全的通信信道上安全交换密钥。</p>
                        <div class="bg-gray-100 p-3 rounded">
                            <span class="font-medium text-red-600">应用场景：</span> 密钥交换、SSL/TLS。
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-12">
        <div class="container mx-auto max-w-6xl px-4">
            <div class="text-center">
                <h3 class="text-xl font-bold mb-2 text-white">技术小馆</h3>
                <p class="mb-6">探索技术的无限可能</p>
                <a href="http://www.yuque.com/jtostring" class="text-purple-400 hover:text-purple-300 transition duration-300">
                    <i class="fas fa-external-link-alt mr-2"></i>访问技术小馆
                </a>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            },
            themeVariables: {
                primaryColor: '#6e48aa',
                primaryTextColor: '#fff',
                primaryBorderColor: '#6e48aa',
                lineColor: '#9d50bb',
                secondaryColor: '#9d50bb',
                tertiaryColor: '#6e48aa'
            }
        });
    </script>
</body>
</html>
```